inspector: minor cleanup
authorMatthias Clasen <mclasen@redhat.com>
Tue, 25 Nov 2014 01:36:00 +0000 (20:36 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 25 Nov 2014 01:36:00 +0000 (20:36 -0500)
gtk/inspector/prop-list.c
gtk/inspector/prop-list.ui

index cefce2fc2c5acc600172cb1693f52051e924c835..771ea9c836c77a32b5c639f7c43c1f90a44bba62 100644 (file)
@@ -217,8 +217,6 @@ gtk_inspector_prop_list_init (GtkInspectorPropList *pl)
                                                 g_str_equal,
                                                 NULL,
                                                 (GDestroyNotify) gtk_tree_iter_free);
-
-  g_signal_connect (pl, "hierarchy-changed", G_CALLBACK (hierarchy_changed), NULL);
 }
 
 static void
@@ -374,6 +372,7 @@ gtk_inspector_prop_list_class_init (GtkInspectorPropListClass *klass)
   gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorPropList, object_title);
   gtk_widget_class_bind_template_callback (widget_class, row_activated);
   gtk_widget_class_bind_template_callback (widget_class, search_close_clicked);
+  gtk_widget_class_bind_template_callback (widget_class, hierarchy_changed);
 }
 
 static void
index ba717b8319c1832f45fa6670226f1fb203b793ca..ae7e6ec64e4b7d592b1c58299540f4c014108522 100644 (file)
@@ -12,6 +12,7 @@
   </object>
   <template class="GtkInspectorPropList" parent="GtkBox">
     <property name="orientation">vertical</property>
+    <signal name="hierarchy-changed" handler="hierarchy_changed"/>
     <child>
       <object class="GtkStack" id="search_stack">
         <property name="visible">True</property>